import { http } from '@/utils/http.js'

export const verifyCodeApi = (data) => {
  return http.get('/code', { params: data })
}

export const loginByMobileApi = (data) => {
  return http.post('/login', data)
}

/**
 * 用户登录接口（密码方式）
 */
export const loginByPassword = (data) => {
  return http.post('/login/password', data)
}

/**
 * 用户登录接口（密码方式）
 */
export const userInfoApi = () => {
  return http.get('/patient/myUser')
}
